export const Toggle = {
  bind (el, binding) {
    Toggle.update(el, binding)
  },
  update (el, binding) {
    if (binding.value) {
      // 如果指令接收到的为真值，则应打开侧边栏
      el.classList.add('active');
      // 通过添加active类来打开侧边栏
    } else {
      // 否则关闭
      el.classList.remove('active')
    }
  }
}